package com.oe.mail.controller;

import com.oe.common.build.ResponseBuilder;
import com.oe.common.resp.LdmResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
public class MailController {



    @RequestMapping(value = "/sendMail/{email}/{code}",method = RequestMethod.POST)
    @ResponseBody
    public LdmResponse sendMail(@PathVariable("email")String  email, @PathVariable("code") String code){
        System.out.println("邮件已发送给："+email+"验证码为："+code);
        return ResponseBuilder.buildResponse(true,"邮件发送成功！",null);
    }
}
